x86: xsave save/restore support for both PV and HVM guests (version 2)
authorKeir Fraser <keir@xen.org>
Mon, 8 Nov 2010 15:44:02 +0000 (15:44 +0000)
committerKeir Fraser <keir@xen.org>
Mon, 8 Nov 2010 15:44:02 +0000 (15:44 +0000)
commit47a3fb9662188c9e2f02a8a428e5cc72ce3f451a
tree00d8ee313ffbbb361ef58cde403255598e5dea56
parent59e3eeb9ef559fa0db5efe69196aa78ee0c5bbea
x86: xsave save/restore support for both PV and HVM guests (version 2)

I have tested the patch in the following senarios:
1> Non-xsave platform
2> Xsave-capable platform, guest does not support xsave, xen support xsave
3> Xsave-capable platform, guest does support xsave, xen supports xsave
4> Guest (non-xsave) saved on platform without xsave, restored on a
   Xsave-capable system.

All passed.

Signed-off-by: Shan Haitao <haitao.shan@intel.com>
Signed-off-by: Han Weidong <weidong.han@intel.com>
tools/libxc/xc_domain_restore.c
tools/libxc/xc_domain_save.c
xen/arch/x86/domctl.c
xen/arch/x86/hvm/hvm.c
xen/include/public/arch-x86/hvm/save.h
xen/include/public/domctl.h
xen/include/xsm/xsm.h
xen/xsm/flask/hooks.c
xen/xsm/flask/include/av_permissions.h